package com.carrot.newsgallery.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Api("用户多级评论")
@TableName(value = "user_comment")
public class Comment {

    @TableId(value = "id", type = IdType.AUTO)
    private int commentId;

    @ApiModelProperty("评论发布人")
    private int posterId;
    @ApiModelProperty("评论附属的文章")
    private int articleId;
    @ApiModelProperty("评论at的人")
    private int receptorId;
    @ApiModelProperty("评论获赞数")
    private int favorNum;
    @ApiModelProperty("评论是否被禁用")
    private int isBanned;

    @ApiModelProperty("评论内容")
    private String comment;
    @ApiModelProperty("评论发布时间")
    private LocalDateTime createTime;

}
